package com.click369.mianshiqingbao.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 用户阅读题目信息的查询条件封装类
 */
public class ReadLogBeanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ReadLogBeanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andReadIdIsNull() {
            addCriterion("read_id is null");
            return (Criteria) this;
        }

        public Criteria andReadIdIsNotNull() {
            addCriterion("read_id is not null");
            return (Criteria) this;
        }

        public Criteria andReadIdEqualTo(String value) {
            addCriterion("read_id =", value, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdNotEqualTo(String value) {
            addCriterion("read_id <>", value, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdGreaterThan(String value) {
            addCriterion("read_id >", value, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdGreaterThanOrEqualTo(String value) {
            addCriterion("read_id >=", value, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdLessThan(String value) {
            addCriterion("read_id <", value, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdLessThanOrEqualTo(String value) {
            addCriterion("read_id <=", value, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdLike(String value) {
            addCriterion("read_id like", value, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdNotLike(String value) {
            addCriterion("read_id not like", value, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdIn(List<String> values) {
            addCriterion("read_id in", values, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdNotIn(List<String> values) {
            addCriterion("read_id not in", values, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdBetween(String value1, String value2) {
            addCriterion("read_id between", value1, value2, "readId");
            return (Criteria) this;
        }

        public Criteria andReadIdNotBetween(String value1, String value2) {
            addCriterion("read_id not between", value1, value2, "readId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andTopicIdIsNull() {
            addCriterion("topic_id is null");
            return (Criteria) this;
        }

        public Criteria andTopicIdIsNotNull() {
            addCriterion("topic_id is not null");
            return (Criteria) this;
        }

        public Criteria andTopicIdEqualTo(Long value) {
            addCriterion("topic_id =", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotEqualTo(Long value) {
            addCriterion("topic_id <>", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdGreaterThan(Long value) {
            addCriterion("topic_id >", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdGreaterThanOrEqualTo(Long value) {
            addCriterion("topic_id >=", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdLessThan(Long value) {
            addCriterion("topic_id <", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdLessThanOrEqualTo(Long value) {
            addCriterion("topic_id <=", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdIn(List<Long> values) {
            addCriterion("topic_id in", values, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotIn(List<Long> values) {
            addCriterion("topic_id not in", values, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdBetween(Long value1, Long value2) {
            addCriterion("topic_id between", value1, value2, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotBetween(Long value1, Long value2) {
            addCriterion("topic_id not between", value1, value2, "topicId");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusIsNull() {
            addCriterion("read_is_status is null");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusIsNotNull() {
            addCriterion("read_is_status is not null");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusEqualTo(Boolean value) {
            addCriterion("read_is_status =", value, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusNotEqualTo(Boolean value) {
            addCriterion("read_is_status <>", value, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusGreaterThan(Boolean value) {
            addCriterion("read_is_status >", value, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("read_is_status >=", value, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusLessThan(Boolean value) {
            addCriterion("read_is_status <", value, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("read_is_status <=", value, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusIn(List<Boolean> values) {
            addCriterion("read_is_status in", values, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusNotIn(List<Boolean> values) {
            addCriterion("read_is_status not in", values, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("read_is_status between", value1, value2, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadIsStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("read_is_status not between", value1, value2, "readIsStatus");
            return (Criteria) this;
        }

        public Criteria andReadTimeIsNull() {
            addCriterion("read_time is null");
            return (Criteria) this;
        }

        public Criteria andReadTimeIsNotNull() {
            addCriterion("read_time is not null");
            return (Criteria) this;
        }

        public Criteria andReadTimeEqualTo(Date value) {
            addCriterion("read_time =", value, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeNotEqualTo(Date value) {
            addCriterion("read_time <>", value, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeGreaterThan(Date value) {
            addCriterion("read_time >", value, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("read_time >=", value, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeLessThan(Date value) {
            addCriterion("read_time <", value, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeLessThanOrEqualTo(Date value) {
            addCriterion("read_time <=", value, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeIn(List<Date> values) {
            addCriterion("read_time in", values, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeNotIn(List<Date> values) {
            addCriterion("read_time not in", values, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeBetween(Date value1, Date value2) {
            addCriterion("read_time between", value1, value2, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTimeNotBetween(Date value1, Date value2) {
            addCriterion("read_time not between", value1, value2, "readTime");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusIsNull() {
            addCriterion("read_topic_status is null");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusIsNotNull() {
            addCriterion("read_topic_status is not null");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusEqualTo(String value) {
            addCriterion("read_topic_status =", value, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusNotEqualTo(String value) {
            addCriterion("read_topic_status <>", value, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusGreaterThan(String value) {
            addCriterion("read_topic_status >", value, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusGreaterThanOrEqualTo(String value) {
            addCriterion("read_topic_status >=", value, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusLessThan(String value) {
            addCriterion("read_topic_status <", value, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusLessThanOrEqualTo(String value) {
            addCriterion("read_topic_status <=", value, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusLike(String value) {
            addCriterion("read_topic_status like", value, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusNotLike(String value) {
            addCriterion("read_topic_status not like", value, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusIn(List<String> values) {
            addCriterion("read_topic_status in", values, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusNotIn(List<String> values) {
            addCriterion("read_topic_status not in", values, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusBetween(String value1, String value2) {
            addCriterion("read_topic_status between", value1, value2, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andReadTopicStatusNotBetween(String value1, String value2) {
            addCriterion("read_topic_status not between", value1, value2, "readTopicStatus");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneIsNull() {
            addCriterion("topic_classify_one is null");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneIsNotNull() {
            addCriterion("topic_classify_one is not null");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneEqualTo(Integer value) {
            addCriterion("topic_classify_one =", value, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneNotEqualTo(Integer value) {
            addCriterion("topic_classify_one <>", value, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneGreaterThan(Integer value) {
            addCriterion("topic_classify_one >", value, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneGreaterThanOrEqualTo(Integer value) {
            addCriterion("topic_classify_one >=", value, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneLessThan(Integer value) {
            addCriterion("topic_classify_one <", value, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneLessThanOrEqualTo(Integer value) {
            addCriterion("topic_classify_one <=", value, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneIn(List<Integer> values) {
            addCriterion("topic_classify_one in", values, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneNotIn(List<Integer> values) {
            addCriterion("topic_classify_one not in", values, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneBetween(Integer value1, Integer value2) {
            addCriterion("topic_classify_one between", value1, value2, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyOneNotBetween(Integer value1, Integer value2) {
            addCriterion("topic_classify_one not between", value1, value2, "topicClassifyOne");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoIsNull() {
            addCriterion("topic_classify_two is null");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoIsNotNull() {
            addCriterion("topic_classify_two is not null");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoEqualTo(Integer value) {
            addCriterion("topic_classify_two =", value, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoNotEqualTo(Integer value) {
            addCriterion("topic_classify_two <>", value, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoGreaterThan(Integer value) {
            addCriterion("topic_classify_two >", value, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoGreaterThanOrEqualTo(Integer value) {
            addCriterion("topic_classify_two >=", value, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoLessThan(Integer value) {
            addCriterion("topic_classify_two <", value, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoLessThanOrEqualTo(Integer value) {
            addCriterion("topic_classify_two <=", value, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoIn(List<Integer> values) {
            addCriterion("topic_classify_two in", values, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoNotIn(List<Integer> values) {
            addCriterion("topic_classify_two not in", values, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoBetween(Integer value1, Integer value2) {
            addCriterion("topic_classify_two between", value1, value2, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyTwoNotBetween(Integer value1, Integer value2) {
            addCriterion("topic_classify_two not between", value1, value2, "topicClassifyTwo");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeIsNull() {
            addCriterion("topic_classify_three is null");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeIsNotNull() {
            addCriterion("topic_classify_three is not null");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeEqualTo(Integer value) {
            addCriterion("topic_classify_three =", value, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeNotEqualTo(Integer value) {
            addCriterion("topic_classify_three <>", value, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeGreaterThan(Integer value) {
            addCriterion("topic_classify_three >", value, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeGreaterThanOrEqualTo(Integer value) {
            addCriterion("topic_classify_three >=", value, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeLessThan(Integer value) {
            addCriterion("topic_classify_three <", value, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeLessThanOrEqualTo(Integer value) {
            addCriterion("topic_classify_three <=", value, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeIn(List<Integer> values) {
            addCriterion("topic_classify_three in", values, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeNotIn(List<Integer> values) {
            addCriterion("topic_classify_three not in", values, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeBetween(Integer value1, Integer value2) {
            addCriterion("topic_classify_three between", value1, value2, "topicClassifyThree");
            return (Criteria) this;
        }

        public Criteria andTopicClassifyThreeNotBetween(Integer value1, Integer value2) {
            addCriterion("topic_classify_three not between", value1, value2, "topicClassifyThree");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}